﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Login.ascx.vb" Inherits="FrontEnd_Control_Users_Login" %>

<script type="text/javascript">
    $(function () {
        $("#<%=txtUserName.ClientID() %>").focus();


        $(".form_login input").keypress(function (e) {
            if (e.keyCode == 13) {
                $("#<%=btnLogin.ClientID()%>").click();
                return false;
            }
        });

    });
    function init() {
        self.parent.tb_remove();
        parent.location.reload(true);
    }
    function dangky() {

        self.parent.tb_remove();
        self.parent.location = "dang-ky.html";
        return false;
       
     
    }
</script>
<Style type="text/css" >
  .TitlePopup
    {
        font: bold 11px Arial, Tahoma, Verdana, Helvetica, sans-serif;
        color: #066bb9;
        text-transform: uppercase;
        text-align: left;
    }
</Style>
  

<div class="box_loginpopup">
    <!-- pages -->
    <div class="box_logincontent">
        <div class="form_login">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="40%" class="text_form_login" valign="middle" align="right">
                        <asp:Image ID="Image1" ImageUrl="~/FrontEnd/images/icon_user.png" align="middle" border="0"
                            runat="server" />
                    </td>
                    <td width="60%" align="left" valign="middle" class="title_login">
                        ĐĂNG NHẬP
                    </td>
                </tr>
                <tr>
                    <td class="text_form_login" valign="middle" align="right">
                        Tên đăng nhập:
                    </td>
                    <td valign="middle" align="left" class="text_form_login_2">
                        <asp:TextBox ID="txtUserName" CssClass="input_login" MaxLength="16" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
                            ErrorMessage="Nhập tên đăng nhập" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="text_form_login" valign="middle" align="right">
                        Mật khẩu
                    </td>
                    <td valign="middle" align="left" class="text_form_login_2">
                        <asp:TextBox ID="txtPassword" CssClass="input_login" MaxLength="16" runat="server"
                            TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                            ErrorMessage="Nhập mật khẩu" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="text_form_login" valign="middle" align="right">
                        &nbsp;
                    </td>
                    <td valign="middle" align="left" class="text_form_login_2">
                        <asp:CheckBox ID="chkRemember" runat="server" Text=" Ghi nhớ đăng nhập" />
                        <span>|</span>
                        <asp:HyperLink ID="hplRemember" Text="Quên mật khẩu!" runat="server"></asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td class="text_form_login_2">
                        <asp:Button ID="btnLogin" CssClass="btn_login" runat="server" Text="Đăng nhập" />
                        &nbsp;
                        <asp:Button ID="btnRegister" OnClientClick="return dangky();" CausesValidation="false" CssClass="btn_login" runat="server"
                            Text="Đăng ký" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td class="text_note_login">
                        <asp:Label ID="lblLoginFail" CssClass="text_label" runat="server" Text="Tên đăng nhập hoặc mật khẩu chưa chính xác. <br> Hãy nhập lại."
                            Visible="False"></asp:Label>
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                            ShowSummary="False" />
                    </td>
                </tr>
            </table>
            <div style="height: 10px" class="clear_both">
            </div>
        </div>
    </div>
    <!-- end pages -->
</div>

